
	var page = 2;
	var stop = true;
	var url = pre_url+"?is_ajax=1";
	$(window).scroll(function(){
		totalheight = $(window).height()*1 + $(window).scrollTop()*1 ;
		
		if($(document).height() <= totalheight){
			if(stop == true){
				console.log("load");
				stop=false;
				
				loaditem(url);
			}
		}
	});
	function loaditem(url,callback,list_id){
		if(typeof list_id=="undefined")
			list_id="list_con";
		url=url+"&page="+page;
		
		$.ajax({
			type: "get",
			url: url,
			dataType:'html',
			beforeSend: function(XMLHttpRequest) {
					$(".more").html('正在加载更多 ......');
			},
			success: function(myjson) {
				if($.trim(myjson)!=""){
				  $("#"+list_id).append(myjson);
				  page = page+1;
				  if(typeof callback == "function")
					  callback();
				  $(".more").html('正在加载更多');
				}else{
					$(".more").html('没有更多了');
				}
				stop=true; 
			}

		});
	}